﻿<%@ Page Title="CartPage" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="CartPage.aspx.cs" Inherits="CartPage" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    
</asp:Content>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:DataGrid ID="CartGrid" runat="server" 
    ondeletecommand="CartGrid_DeleteCommand" AutoGenerateColumns="False" 
    BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" 
    CellPadding="3" GridLines="Vertical" >
        <AlternatingItemStyle BackColor="#DCDCDC" />
        <Columns>
            <asp:BoundColumn HeaderText="ISBN" DataField="ItemISBN" />
            <asp:BoundColumn HeaderText="书名" DataField="ItemName" />
            <asp:BoundColumn HeaderText="单价" DataField="UnitPrice" />
            <asp:BoundColumn HeaderText="数量" DataField="Quantity" />
            <asp:ButtonColumn ButtonType="PushButton" CommandName="Delete" Text="删除">
            </asp:ButtonColumn>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <ItemStyle BackColor="#EEEEEE" ForeColor="Black" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" 
            Mode="NumericPages" />
        <SelectedItemStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
    </asp:DataGrid>
    <p>
        <asp:Button ID="SubmitOrder" Text="确认购买" runat="server" 
        onclick="SubmitOrder_Click" />
    </p>
</asp:Content>